package com.bj58.mis.apm.server.statistics.mapper;

import com.bj58.mis.apm.server.statistics.dto.storage.StorageInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 存储相关查询方法
 * @author: wangxw
 **/
@Mapper
public interface StorageMapper {

    /**
     * 查询存储情况
     * @param isAdmin
     * @param authCubeIdList
     * @param days
     * @return
     */
    List<StorageInfo> getStorageSize(@Param("isAdmin") boolean isAdmin,
                                     @Param("authCubeIdList") List<String> authCubeIdList,
                                     @Param("days") int days);

    /**
     * 查询存储增量情况
     * @param isAdmin
     * @param authCubeIdList
     * @param days
     * @return
     */
    List<StorageInfo> getStorageIncrementSize(@Param("isAdmin") boolean isAdmin,
                                     @Param("authCubeIdList") List<String> authCubeIdList,
                                     @Param("days") int days);
}
